package com.weirong.smartvault.backservice.controller;

import com.weirong.smartvault.backservice.controller.fragment_entity.Header;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Calendar;

/**
 * Created by KFEB4 on 2017/11/17.
 */
@Controller
public class Homepage {
    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String index(ModelMap model){
        model.addAttribute("now",Calendar.getInstance());
        Header header = new Header("");
        model.addAttribute("Header", header);
        return "homepage/homepage";
    }
}
